import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: HomeView,
    redirect:'student/index',
    children: [
      {
        path: '/student/index',
        component: () => import('../views/student/StudentIndexView.vue')
      },
      {
        path: '/student/anotherWeb/ExamCenter',
        component: () => import('../views/student/anotherWeb/ExamCenterView.vue')
      },{
        path: '/student/anotherWeb/IntelligentTraining',
        component: () => import('../views/student/anotherWeb/IntelligentTrainingView.vue')
      },{
        path: '/student/anotherWeb/VideoClass',
        component: () => import('../views/student/anotherWeb/VideoClassView.vue')
      },{
        path: '/student/anotherWeb/ExamCenter',
        component: () => import('../views/student/anotherWeb/ExamCenterView.vue')
      },
    ]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
